<!-- ControlComponents, begin -->
<?php
  $moduleName = sfContext::getInstance()->getRequest()->getParameter("module");
  $subModuleName = $moduleName."Item";
  $attachName = "Factory";

  echo "<div id=\"".WacModuleHelper::getComponentsId($moduleName.$attachName)."\">\n\n";

//  // module buttons bar
//  include_component('common', 'controlTable1',
//              array( 'partial'      => WacModule::getName("common")."/".WacControlTableType::$moduleButtonBar,
//                     'invokeParams' => array(
//                                           'moduleName' => $moduleName,
//                                           'caption'    => WacModule::getCaption($moduleName.$attachName),
//                                           'attachName' => $attachName
//                                           )
//                  ));

  // model list
  include_component('common', 'controlTable1',
              array( 'partial'      => $moduleName."/".WacModuleHelper::getListId($moduleName,$attachName),
                     'invokeParams' => array(
                              'moduleName' => $moduleName,
                              'subItemModuleName' => $subModuleName,
                              'attachName' => $attachName,
                              'caption'    => WacModule::getCaption($moduleName.$attachName),
                              'mainListUrl' => "factory/getList",
                              'subListUrl' => "factoryGoodsItem/getList"
                      )
                  ));

  echo "</div>\n\n";
?>
<!-- ControlComponents, end -->